"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurUserId = void 0;
var common_1 = require("@nestjs/common");
var graphql_1 = require("@nestjs/graphql");
exports.CurUserId = (0, common_1.createParamDecorator)(function (_data, context) {
    var ctx = graphql_1.GqlExecutionContext.create(context);
    var userId = ctx.getContext().req.user.id;
    console.log('userId', userId);
    return userId;
});
